package com.vanzo.talkie2;

/**
 * Created by tisen on 2018/1/17.
 */

public class Test {
    public static void main(String[] args) {
        String mTPVersion = "fwversion:0x4";
        String[] list = mTPVersion.split(":");
        if (list.length == 2) {
            String name = list[0];
            String code = list[1];
            if (code.contains("0x") && code.length() < 4) {
                mTPVersion = name + ":0x0" + code.substring(2, 3);
            }
        }
        System.out.println(mTPVersion);
    }

    private void test() {
        String temp = "宋爱梅、王志芳、于光、贾隽仙、贾燕青、刘振杰、郭卫东、崔红宇、马福平、冯红、崔敬伟、穆增志、谢志威、吕金起、韩云庆、鲁全福、郭建立、郝连水、闫智胜";
        String[] list = temp.split("、");
        for (String s :
                list) {
            System.out.print("\"" + s + "\",");

        }
    }
}
